﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
namespace gamexpert
{
    public partial class MemberArea : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!User.Identity.IsAuthenticated)
            {
                Response.Redirect("~/Login.aspx");
            }
            MembershipUser u = Membership.GetUser(User.Identity.Name);
            Guid userid = (Guid)u.ProviderUserKey;
            string str = userid.ToString();
            Session["userid"] = str;
        }

        protected void lbtn_cpassword_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/member/ChangePassword.aspx");
        }

        protected void lbtn_cemail_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/member/ChangeEmail.aspx");
        }

        protected void lbtn_phistory_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/member/PurchaseHistory.aspx");
        }

        protected void lbtn_bsaddress_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/member/BillingNShippingAddress.aspx");
        }

        protected void lbtn_downloads_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/member/Downloads.aspx");
        }
    }
}
